package com.items.blog.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserInfo implements Serializable {//支持序列化

    private Integer id;//id
    private String userName;//用户名
    private String password;//密码
    private String email;//邮箱
    private String code;//验证码
    private String salt;//盐
    private String confirmCode;//确认码
    private LocalDateTime activationTime;//激活失效时间
    private Byte isValid;//是否可用，0不用，1可用

    private String githubUrl;//gitee地址
    private Integer deleteFlag;
    private Date createTime;//创建时间
    private Date updateTime;//更新时间


    @Override
    public String toString() {
        return "UserInfo{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", githubUrl='" + githubUrl + '\'' +
                ", deleteFlag=" + deleteFlag +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
